package day05home;

//扩展练习 利用for循环计算：打印字符*组成的直角三角形
public class ForStar {
    public static void main(String[] args) {
        for (int i = 1; i <= 6; i++) {
            for (int k = 1; k <= 2 * i - 1; k++) {
                System.out.print("*");
            }
            System.out.println();

        }
    }
}
